package com.dfrz.stockMarket.model;

import java.util.Date;

public class UserOrderModel {
	private int orderID;
	private int userID;
	private int stockCode;
	private int type;
	private String codename;
	private int stockQuantity;
	private double stockPrice;
	private Date createDate;
	
	public String getCodename() {
		return codename;
	}
	public void setCodename(String codename) {
		this.codename = codename;
	}

	public int getOrderID() {
		return orderID;
	}
	public void setOrderID(int orderID) {
		this.orderID = orderID;
	}
	public int getUserID() {
		return userID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	public int getStockCode() {
		return stockCode;
	}
	public void setStockCode(int stockCode) {
		this.stockCode = stockCode;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getStockQuantity() {
		return stockQuantity;
	}
	public void setStockQuantity(int stockQuantity) {
		this.stockQuantity = stockQuantity;
	}
	public double getStockPrice() {
		return stockPrice;
	}
	public void setStockPrice(double stockPrice) {
		this.stockPrice = stockPrice;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "UserOrderModel [orderID=" + orderID + ", userID=" + userID + ", stockCode=" + stockCode + ", type="
				+ type + ", codename=" + codename + ", stockQuantity=" + stockQuantity + ", stockPrice=" + stockPrice
				+ ", createDate=" + createDate + "]";
	}
	public UserOrderModel( int userID, int stockCode, String codename,int type,
			int stockQuantity, double stockPrice, Date createDate) {
		this.userID = userID;
		this.stockCode = stockCode;
		this.type = type;
		this.stockQuantity = stockQuantity;
		this.stockPrice = stockPrice;
		this.createDate = createDate;
		this.codename=codename;
	}
	public UserOrderModel() {
		
	}
	
}
